home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5521 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 4a 61 6d 65 73 20 52 6f |n.From: |James Ro|
|00000030| 62 69 6e 73 6f 6e 20 3c | 72 6f 62 69 6e 73 6f 6e |binson <|robinson|
|00000040| 40 62 6c 75 65 2e 77 65 | 65 67 2e 75 69 6f 77 61 |@blue.we|eg.uiowa|
|00000050| 2e 65 64 75 3e 0a 4e 65 | 77 73 67 72 6f 75 70 73 |.edu>.Ne|wsgroups|
|00000060| 3a 20 63 6f 6d 70 2e 73 | 6f 75 72 63 65 73 2e 77 |: comp.s|ources.w|
|00000070| 61 6e 74 65 64 2c 63 6f | 6d 70 2e 6c 61 6e 67 2e |anted,co|mp.lang.|
|00000080| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 53 |c.Subjec|t: Re: S|
|00000090| 65 65 6b 20 43 20 66 75 | 6e 63 74 69 6f 6e 20 74 |eek C fu|nction t|
|000000a0| 6f 20 66 6f 72 6d 61 74 | 20 64 6f 6c 6c 61 72 73 |o format| dollars|
|000000b0| 0a 44 61 74 65 3a 20 46 | 72 69 2c 20 39 20 46 65 |.Date: F|ri, 9 Fe|
|000000c0| 62 20 31 39 39 36 20 30 | 32 3a 34 37 3a 33 32 20 |b 1996 0|2:47:32 |
|000000d0| 2d 30 36 30 30 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |-0600.Or|ganizati|
|000000e0| 6f 6e 3a 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |on: Univ|ersity o|
|000000f0| 66 20 49 6f 77 61 2c 20 | 49 6f 77 61 20 43 69 74 |f Iowa, |Iowa Cit|
|00000100| 79 2c 20 49 41 2c 20 55 | 53 41 0a 44 69 73 74 72 |y, IA, U|SA.Distr|
|00000110| 69 62 75 74 69 6f 6e 3a | 20 77 6f 72 6c 64 0a 4d |ibution:| world.M|
|00000120| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 50 69 6e 65 |essage-I|D: <Pine|
|00000130| 2e 41 33 32 2e 33 2e 39 | 31 2e 39 36 30 32 30 39 |.A32.3.9|1.960209|
|00000140| 30 32 34 33 34 36 2e 32 | 34 34 33 34 4b 2d 31 30 |024346.2|4434K-10|
|00000150| 30 30 30 30 40 72 65 64 | 2e 77 65 65 67 2e 75 69 |0000@red|.weeg.ui|
|00000160| 6f 77 61 2e 65 64 75 3e | 0a 52 65 66 65 72 65 6e |owa.edu>|.Referen|
|00000170| 63 65 73 3a 20 3c 34 66 | 65 6b 65 72 24 35 62 64 |ces: <4f|eker$5bd|
|00000180| 40 6e 75 6b 65 2e 63 73 | 75 2e 6e 65 74 3e 0a 4e |@nuke.cs|u.net>.N|
|00000190| 4e 54 50 2d 50 6f 73 74 | 69 6e 67 2d 48 6f 73 74 |NTP-Post|ing-Host|
|000001a0| 3a 20 72 65 64 2e 77 65 | 65 67 2e 75 69 6f 77 61 |: red.we|eg.uiowa|
|000001b0| 2e 65 64 75 0a 4d 69 6d | 65 2d 56 65 72 73 69 6f |.edu.Mim|e-Versio|
|000001c0| 6e 3a 20 31 2e 30 0a 43 | 6f 6e 74 65 6e 74 2d 54 |n: 1.0.C|ontent-T|
|000001d0| 79 70 65 3a 20 54 45 58 | 54 2f 50 4c 41 49 4e 3b |ype: TEX|T/PLAIN;|
|000001e0| 20 63 68 61 72 73 65 74 | 3d 55 53 2d 41 53 43 49 | charset|=US-ASCI|
|000001f0| 49 0a 58 2d 53 65 6e 64 | 65 72 3a 20 72 6f 62 69 |I.X-Send|er: robi|
|00000200| 6e 73 6f 6e 40 72 65 64 | 2e 77 65 65 67 2e 75 69 |nson@red|.weeg.ui|
|00000210| 6f 77 61 2e 65 64 75 0a | 49 6e 2d 52 65 70 6c 79 |owa.edu.|In-Reply|
|00000220| 2d 54 6f 3a 20 3c 34 66 | 65 6b 65 72 24 35 62 64 |-To: <4f|eker$5bd|
|00000230| 40 6e 75 6b 65 2e 63 73 | 75 2e 6e 65 74 3e 20 0a |@nuke.cs|u.net> .|
|00000240| 0a 4f 6e 20 39 20 46 65 | 62 20 31 39 39 36 2c 20 |.On 9 Fe|b 1996, |
|00000250| 45 6d 6d 65 74 74 20 4d | 63 6c 65 61 6e 20 77 72 |Emmett M|clean wr|
|00000260| 6f 74 65 3a 0a 0a 3e 20 | 0a 3e 20 48 69 2c 0a 3e |ote:..> |.> Hi,.>|
|00000270| 20 0a 3e 20 42 65 66 6f | 72 65 20 73 65 74 74 69 | .> Befo|re setti|
|00000280| 6e 67 20 6f 75 74 20 74 | 6f 20 77 72 69 74 65 20 |ng out t|o write |
|00000290| 69 74 20 6d 79 73 65 6c | 66 20 2e 2e 2e 2e 0a 3e |it mysel|f .....>|
|000002a0| 20 0a 3e 20 44 6f 65 73 | 20 61 6e 79 6f 6e 65 20 | .> Does| anyone |
|000002b0| 68 61 76 65 20 61 20 43 | 20 66 75 6e 63 74 69 6f |have a C| functio|
|000002c0| 6e 20 66 6f 72 20 66 6f | 72 6d 61 74 69 6e 67 0a |n for fo|rmating.|
|000002d0| 3e 20 64 6f 75 62 6c 65 | 73 20 61 73 20 64 6f 6c |> double|s as dol|
|000002e0| 6c 61 72 73 3f 20 53 6f | 20 35 30 30 30 30 2e 20 |lars? So| 50000. |
|000002f0| 70 72 69 6e 74 73 20 61 | 73 0a 3e 20 24 35 30 2c |prints a|s.> $50,|
|00000300| 30 30 30 2e 0a 0a 20 20 | 4a 75 73 74 20 6f 75 74 |000... |Just out|
|00000310| 20 6f 66 20 63 75 72 69 | 6f 73 69 74 79 2c 20 77 | of curi|osity, w|
|00000320| 68 79 20 61 72 65 20 79 | 6f 75 20 73 74 6f 72 69 |hy are y|ou stori|
|00000330| 6e 67 20 64 6f 6c 6c 61 | 72 20 61 6d 6f 75 6e 74 |ng dolla|r amount|
|00000340| 73 20 69 6e 20 66 6c 6f | 61 74 69 6e 67 20 0a 70 |s in flo|ating .p|
|00000350| 6f 69 6e 74 3f 20 20 24 | 30 2e 31 30 20 63 61 6e |oint? $|0.10 can|
|00000360| 27 74 20 62 65 20 72 65 | 70 72 65 73 65 6e 74 65 |'t be re|presente|
|00000370| 64 20 65 78 61 63 74 6c | 79 20 69 6e 20 62 69 6e |d exactl|y in bin|
|00000380| 61 72 79 2e 0a 20 20 49 | 66 20 79 6f 75 20 75 73 |ary.. I|f you us|
|00000390| 65 20 69 6e 74 73 20 28 | 6f 72 20 6c 6f 6e 67 73 |e ints (|or longs|
|000003a0| 29 20 61 6e 64 20 72 65 | 70 72 65 73 65 6e 74 20 |) and re|present |
|000003b0| 24 31 35 30 2e 30 30 20 | 61 73 20 31 35 30 30 30 |$150.00 |as 15000|
|000003c0| 20 69 6e 74 65 72 6e 61 | 6c 6c 79 20 0a 74 68 65 | interna|lly .the|
|000003d0| 6e 20 69 74 20 62 65 63 | 6f 6d 65 73 20 76 65 72 |n it bec|omes ver|
|000003e0| 79 20 65 61 73 79 20 74 | 6f 20 66 6f 72 6d 61 74 |y easy t|o format|
|000003f0| 20 61 6e 64 20 6f 74 68 | 65 72 77 69 73 65 20 6d | and oth|erwise m|
|00000400| 61 6e 69 70 75 6c 61 74 | 65 20 74 68 65 20 0a 6e |anipulat|e the .n|
|00000410| 75 6d 62 65 72 73 2e 20 | 20 49 66 20 79 6f 75 20 |umbers. | If you |
|00000420| 77 61 6e 74 20 62 65 74 | 74 65 72 20 74 68 61 6e |want bet|ter than|
|00000430| 20 24 30 2e 30 31 20 70 | 72 65 63 69 73 69 6f 6e | $0.01 p|recision|
|00000440| 20 79 6f 75 20 63 61 6e | 20 72 65 70 72 65 73 65 | you can| represe|
|00000450| 6e 74 20 0a 24 31 35 30 | 2e 30 30 30 20 61 73 20 |nt .$150|.000 as |
|00000460| 31 35 30 30 30 30 2c 20 | 65 74 63 2e 0a 0a 3e 20 |150000, |etc...> |
|00000470| 41 6e 20 69 6d 70 72 6f | 76 65 64 20 76 65 72 73 |An impro|ved vers|
|00000480| 69 6f 6e 20 6f 66 20 70 | 72 69 6e 74 66 20 77 69 |ion of p|rintf wi|
|00000490| 74 68 20 61 20 25 24 0a | 3e 20 6f 70 74 69 6f 6e |th a %$.|> option|
|000004a0| 20 77 6f 75 6c 64 20 62 | 65 20 65 73 70 65 63 69 | would b|e especi|
|000004b0| 61 6c 6c 79 20 74 65 72 | 72 69 66 69 63 2e 0a 0a |ally ter|rific...|
|000004c0| 20 20 55 6e 66 6f 72 74 | 75 6e 61 74 65 6c 79 2c | Unfort|unately,|
|000004d0| 20 49 20 64 6f 6e 27 74 | 20 68 61 76 65 20 61 6e | I don't| have an|
|000004e0| 79 20 73 75 63 68 20 74 | 68 69 6e 67 2e 0a 0a 2d |y such t|hing...-|
|000004f0| 20 4a 61 6d 65 73 20 20 | 20 20 20 20 20 20 20 20 | James | |
|00000500| 20 20 20 20 20 20 20 20 | 20 20 22 47 6f 6f 64 20 | | "Good |
|00000510| 63 61 6e 64 69 64 61 74 | 65 73 20 66 6f 72 20 65 |candidat|es for e|
|00000520| 78 63 65 70 74 69 6f 6e | 73 20 61 72 65 20 73 69 |xception|s are si|
|00000530| 74 75 61 74 69 6f 6e 73 | 0a 6a 61 6d 65 73 2d 72 |tuations|.james-r|
|00000540| 6f 62 69 6e 73 6f 6e 40 | 75 69 6f 77 61 2e 65 64 |obinson@|uiowa.ed|
|00000550| 75 20 20 20 74 68 61 74 | 20 64 6f 20 6e 6f 74 20 |u that| do not |
|00000560| 6f 63 63 75 72 20 75 6e | 64 65 72 20 6e 6f 72 6d |occur un|der norm|
|00000570| 61 6c 20 63 69 72 63 75 | 6d 73 74 61 6e 63 65 73 |al circu|mstances|
|00000580| 2e 22 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.". | |
|00000590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005b0| 20 20 20 20 20 20 20 20 | 20 20 20 2d 2d 20 4b 65 | | -- Ke|
|000005c0| 76 69 6e 20 4a 2e 20 48 | 6f 70 70 73 0a 0a |vin J. H|opps.. |
+--------+-------------------------+-------------------------+--------+--------+